//
//  TelevisionCell.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "TelevisionCell.h"

@implementation TelevisionCell
-(instancetype)initWithFrame:(CGRect)frame
{
 self =  [super initWithFrame:frame];
    if (self) {
        
        
        _imageView = [[UIImageView alloc]init];
        _imageView.backgroundColor = [UIColor redColor];
        [self addSubview:_imageView];
              _label = [[BaseLabel alloc]init];
        _label.font = [UIFont systemFontOfSize:13];
        _label.textAlignment = 1;
        [self addSubview:_label];
    }
    
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    
    _imageView.frame = CGRectMake(15, 30, 50, 50);
    _label.frame = CGRectMake(_imageView.frame.origin.x, _imageView.frame.origin.y + _imageView.frame.size.height + 5, _imageView.frame.size.width, 20);
    
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
